package com.wizard.moremall.common.mapper;

import com.wizard.moremall.common.entity.Product;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wizard.moremall.common.vo.ProductVO;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-01-18
 */
public interface ProductMapper extends BaseMapper<Product> {

    //根据二级分类id查商品
    List<ProductVO> getByCategoryId(Integer categoryId);

    //根据id查商品
    ProductVO getByProductId(Integer productId);
}
